using System.ComponentModel.DataAnnotations;

namespace StudentVideo.Shared.Dtos.Major;

public class MajorCreateRequest {

   /// <summary>
   /// 名称
   /// </summary>
   [Required]
   [MaxLength(50)]
   public required string Name { get; set; }


   /// <summary>
   /// 名称
   /// </summary>
   [Required]
   [MaxLength(20)]
   public required string Code { get; set; }

   /// <summary>
   /// 激活状态
   /// </summary>
   public bool Status { get; set; } = true;

   /// <summary>
   /// 课程列表
   /// </summary>
   public List<string> Course { get; set; } = [];
}
